//
//  SCNCenterTableViewCell.swift
//  ShoucainuSwift
//
//  Created by 王家旭 on 2017/3/28.
//  Copyright © 2017年 Riluee. All rights reserved.
//

import UIKit

class SCNCenterTableViewCell: UITableViewCell {

    lazy var iconView: UIImageView = {
    
        let img = UIImageView()
    
        return img
    }()
    
    lazy var titleL: UILabel = {
       
        let lab = UILabel()
        lab.font = UIFont.systemFont(ofSize: 16.0)
        
        return lab
    }()
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        addSubview(iconView)
        addSubview(titleL)
        
        iconView.snp.makeConstraints { (make) in
            make.size.equalTo(CGSize(width: 21, height: 21))
            make.leading.equalTo(16)
            make.top.equalTo(11.5)
        }
        
        titleL.snp.makeConstraints { (make) in
            make.leading.equalTo(iconView.snp.trailing).offset(15)
            make.top.equalTo(10)
            make.size.equalTo(CGSize(width: 150, height: 24))
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
